package com.beans;

import java.sql.Date;

/**
 * @auther user
 * @date 2021/12/6 - 14:34
 *  ORM 的编程思想，（Object Relational Mapping）
 *  一个数据表对应一个Java类
 *  表中的一条记录对应Java类中的一个对象
 *  表中的一个字段对应Java类中的一个属性
 */
public class Customers {
    private int id;
    private String name;
    private String email;
    private Date birth;

    public Customers() {
        super();
    }
    public Customers(int id, String name, String email, Date birth) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.birth = birth;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "Customers{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", birth=" + birth +
                '}';
    }
}
